package corej.review.lxf.oop.biz.impl;

import corej.review.lxf.oop.biz.DatabaseBiz;
import corej.review.lxf.oop.entity.Database;
import corej.review.lxf.oop.entity.Oracle;

public class OracleBiz implements DatabaseBiz {

    public void connect(Database db) {
        Oracle oracle = (Oracle) db;
        System.out.println("connected to oracle: " + oracle.getName());
    }

    public void execute(String sql) {
        System.out.println("execute " + sql + " in oracle");
    }

    public void close(Database db) {
        System.out.println("close connection of oracle: " + db.getName());
    }

}
